3.694 \(\int \frac{\left (a d e+\left (c d^2+a e^2\right ) x+c d e x^2\right )^{3/2}}{(d+e x)^{3/2} (f+g x)} \, dx\)

Optimal. Leaf size=179 \[ \frac{2 (c d f-a e g)^{3/2} \tan ^{-1}\left (\frac{\sqrt{g} \sqrt{x \left (a e^2+c d^2\right )+a d e+c d e x^2}}{\sqrt{d+e x} \sqrt{c d f-a e g}}\right )}{g^{5/2}}-\frac{2 \sqrt{x \left (a e^2+c d^2\right )+a d e+c d e x^2} (c d f-a e g)}{g^2 \sqrt{d+e x}}+\frac{2 \left (x \left (a e^2+c d^2\right )+a d e+c d e x^2\right )^{3/2}}{3 g (d+e x)^{3/2}} \]

[Out]

(-2*(c*d*f - a*e*g)*Sqrt[a*d*e + (c*d^2 + a*e^2)*x + c*d*e*x^2])/(g^2*Sqrt[d + e
*x]) + (2*(a*d*e + (c*d^2 + a*e^2)*x + c*d*e*x^2)^(3/2))/(3*g*(d + e*x)^(3/2)) +
 (2*(c*d*f - a*e*g)^(3/2)*ArcTan[(Sqrt[g]*Sqrt[a*d*e + (c*d^2 + a*e^2)*x + c*d*e
*x^2])/(Sqrt[c*d*f - a*e*g]*Sqrt[d + e*x])])/g^(5/2)

_______________________________________________________________________________________

Rubi [A]  time = 0.97726, antiderivative size = 179, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 46, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.065 \[ \frac{2 (c d f-a e g)^{3/2} \tan ^{-1}\left (\frac{\sqrt{g} \sqrt{x \left (a e^2+c d^2\right )+a d e+c d e x^2}}{\sqrt{d+e x} \sqrt{c d f-a e g}}\right )}{g^{5/2}}-\frac{2 \sqrt{x \left (a e^2+c d^2\right )+a d e+c d e x^2} (c d f-a e g)}{g^2 \sqrt{d+e x}}+\frac{2 \left (x \left (a e^2+c d^2\right )+a d e+c d e x^2\right )^{3/2}}{3 g (d+e x)^{3/2}} \]

Antiderivative was successfully verified.

[In]  Int[(a*d*e + (c*d^2 + a*e^2)*x + c*d*e*x^2)^(3/2)/((d + e*x)^(3/2)*(f + g*x)),x]

[Out]

(-2*(c*d*f - a*e*g)*Sqrt[a*d*e + (c*d^2 + a*e^2)*x + c*d*e*x^2])/(g^2*Sqrt[d + e
*x]) + (2*(a*d*e + (c*d^2 + a*e^2)*x + c*d*e*x^2)^(3/2))/(3*g*(d + e*x)^(3/2)) +
 (2*(c*d*f - a*e*g)^(3/2)*ArcTan[(Sqrt[g]*Sqrt[a*d*e + (c*d^2 + a*e^2)*x + c*d*e
*x^2])/(Sqrt[c*d*f - a*e*g]*Sqrt[d + e*x])])/g^(5/2)

_______________________________________________________________________________________

Rubi in Sympy [A]  time = 82.9965, size = 172, normalized size = 0.96 \[ \frac{2 \left (a d e + c d e x^{2} + x \left (a e^{2} + c d^{2}\right )\right )^{\frac{3}{2}}}{3 g \left (d + e x\right )^{\frac{3}{2}}} + \frac{2 \left (a e g - c d f\right ) \sqrt{a d e + c d e x^{2} + x \left (a e^{2} + c d^{2}\right )}}{g^{2} \sqrt{d + e x}} - \frac{2 \left (a e g - c d f\right )^{\frac{3}{2}} \operatorname{atanh}{\left (\frac{\sqrt{g} \sqrt{a d e + c d e x^{2} + x \left (a e^{2} + c d^{2}\right )}}{\sqrt{d + e x} \sqrt{a e g - c d f}} \right )}}{g^{\frac{5}{2}}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  rubi_integrate((a*d*e+(a*e**2+c*d**2)*x+c*d*e*x**2)**(3/2)/(e*x+d)**(3/2)/(g*x+f),x)

[Out]

2*(a*d*e + c*d*e*x**2 + x*(a*e**2 + c*d**2))**(3/2)/(3*g*(d + e*x)**(3/2)) + 2*(
a*e*g - c*d*f)*sqrt(a*d*e + c*d*e*x**2 + x*(a*e**2 + c*d**2))/(g**2*sqrt(d + e*x
)) - 2*(a*e*g - c*d*f)**(3/2)*atanh(sqrt(g)*sqrt(a*d*e + c*d*e*x**2 + x*(a*e**2
+ c*d**2))/(sqrt(d + e*x)*sqrt(a*e*g - c*d*f)))/g**(5/2)

_______________________________________________________________________________________

Mathematica [A]  time = 0.306365, size = 132, normalized size = 0.74 \[ \frac{2 \sqrt{d+e x} \sqrt{a e+c d x} \left (\sqrt{g} \sqrt{a e+c d x} (4 a e g-3 c d f+c d g x)-3 (a e g-c d f)^{3/2} \tanh ^{-1}\left (\frac{\sqrt{g} \sqrt{a e+c d x}}{\sqrt{a e g-c d f}}\right )\right )}{3 g^{5/2} \sqrt{(d+e x) (a e+c d x)}} \]

Antiderivative was successfully verified.

[In]  Integrate[(a*d*e + (c*d^2 + a*e^2)*x + c*d*e*x^2)^(3/2)/((d + e*x)^(3/2)*(f + g*x)),x]

[Out]

(2*Sqrt[a*e + c*d*x]*Sqrt[d + e*x]*(Sqrt[g]*Sqrt[a*e + c*d*x]*(-3*c*d*f + 4*a*e*
g + c*d*g*x) - 3*(-(c*d*f) + a*e*g)^(3/2)*ArcTanh[(Sqrt[g]*Sqrt[a*e + c*d*x])/Sq
rt[-(c*d*f) + a*e*g]]))/(3*g^(5/2)*Sqrt[(a*e + c*d*x)*(d + e*x)])

_______________________________________________________________________________________

Maple [A]  time = 0.027, size = 263, normalized size = 1.5 \[ -{\frac{2}{3\,{g}^{2}}\sqrt{cde{x}^{2}+a{e}^{2}x+c{d}^{2}x+ade} \left ( 3\,{\it Artanh} \left ({\frac{g\sqrt{cdx+ae}}{\sqrt{ \left ( aeg-cdf \right ) g}}} \right ){a}^{2}{e}^{2}{g}^{2}-6\,{\it Artanh} \left ({\frac{g\sqrt{cdx+ae}}{\sqrt{ \left ( aeg-cdf \right ) g}}} \right ) acdefg+3\,{\it Artanh} \left ({\frac{g\sqrt{cdx+ae}}{\sqrt{ \left ( aeg-cdf \right ) g}}} \right ){c}^{2}{d}^{2}{f}^{2}-\sqrt{ \left ( aeg-cdf \right ) g}\sqrt{cdx+ae}xcdg-4\,\sqrt{ \left ( aeg-cdf \right ) g}\sqrt{cdx+ae}aeg+3\,\sqrt{ \left ( aeg-cdf \right ) g}\sqrt{cdx+ae}cdf \right ){\frac{1}{\sqrt{ex+d}}}{\frac{1}{\sqrt{cdx+ae}}}{\frac{1}{\sqrt{ \left ( aeg-cdf \right ) g}}}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  int((a*d*e+(a*e^2+c*d^2)*x+c*d*e*x^2)^(3/2)/(e*x+d)^(3/2)/(g*x+f),x)

[Out]

-2/3*(c*d*e*x^2+a*e^2*x+c*d^2*x+a*d*e)^(1/2)*(3*arctanh(g*(c*d*x+a*e)^(1/2)/((a*
e*g-c*d*f)*g)^(1/2))*a^2*e^2*g^2-6*arctanh(g*(c*d*x+a*e)^(1/2)/((a*e*g-c*d*f)*g)
^(1/2))*a*c*d*e*f*g+3*arctanh(g*(c*d*x+a*e)^(1/2)/((a*e*g-c*d*f)*g)^(1/2))*c^2*d
^2*f^2-((a*e*g-c*d*f)*g)^(1/2)*(c*d*x+a*e)^(1/2)*x*c*d*g-4*((a*e*g-c*d*f)*g)^(1/
2)*(c*d*x+a*e)^(1/2)*a*e*g+3*((a*e*g-c*d*f)*g)^(1/2)*(c*d*x+a*e)^(1/2)*c*d*f)/(e
*x+d)^(1/2)/(c*d*x+a*e)^(1/2)/g^2/((a*e*g-c*d*f)*g)^(1/2)

_______________________________________________________________________________________

Maxima [F]  time = 0., size = 0, normalized size = 0. \[ \text{Exception raised: ValueError} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((c*d*e*x^2 + a*d*e + (c*d^2 + a*e^2)*x)^(3/2)/((e*x + d)^(3/2)*(g*x + f)),x, algorithm="maxima")

[Out]

Exception raised: ValueError

_______________________________________________________________________________________

Fricas [A]  time = 0.282931, size = 1, normalized size = 0.01 \[ \left [\frac{2 \, c^{2} d^{2} e g x^{3} - 6 \, a c d^{2} e f + 8 \, a^{2} d e^{2} g - 3 \, \sqrt{c d e x^{2} + a d e +{\left (c d^{2} + a e^{2}\right )} x}{\left (c d f - a e g\right )} \sqrt{e x + d} \sqrt{-\frac{c d f - a e g}{g}} \log \left (-\frac{c d e g x^{2} - c d^{2} f + 2 \, a d e g - 2 \, \sqrt{c d e x^{2} + a d e +{\left (c d^{2} + a e^{2}\right )} x} \sqrt{e x + d} g \sqrt{-\frac{c d f - a e g}{g}} -{\left (c d e f -{\left (c d^{2} + 2 \, a e^{2}\right )} g\right )} x}{e g x^{2} + d f +{\left (e f + d g\right )} x}\right ) - 2 \,{\left (3 \, c^{2} d^{2} e f -{\left (c^{2} d^{3} + 5 \, a c d e^{2}\right )} g\right )} x^{2} - 2 \,{\left (3 \,{\left (c^{2} d^{3} + a c d e^{2}\right )} f -{\left (5 \, a c d^{2} e + 4 \, a^{2} e^{3}\right )} g\right )} x}{3 \, \sqrt{c d e x^{2} + a d e +{\left (c d^{2} + a e^{2}\right )} x} \sqrt{e x + d} g^{2}}, \frac{2 \,{\left (c^{2} d^{2} e g x^{3} - 3 \, a c d^{2} e f + 4 \, a^{2} d e^{2} g + 3 \, \sqrt{c d e x^{2} + a d e +{\left (c d^{2} + a e^{2}\right )} x}{\left (c d f - a e g\right )} \sqrt{e x + d} \sqrt{\frac{c d f - a e g}{g}} \arctan \left (-\frac{\sqrt{c d e x^{2} + a d e +{\left (c d^{2} + a e^{2}\right )} x}{\left (c d f - a e g\right )} \sqrt{e x + d}}{{\left (c d e g x^{2} + a d e g +{\left (c d^{2} + a e^{2}\right )} g x\right )} \sqrt{\frac{c d f - a e g}{g}}}\right ) -{\left (3 \, c^{2} d^{2} e f -{\left (c^{2} d^{3} + 5 \, a c d e^{2}\right )} g\right )} x^{2} -{\left (3 \,{\left (c^{2} d^{3} + a c d e^{2}\right )} f -{\left (5 \, a c d^{2} e + 4 \, a^{2} e^{3}\right )} g\right )} x\right )}}{3 \, \sqrt{c d e x^{2} + a d e +{\left (c d^{2} + a e^{2}\right )} x} \sqrt{e x + d} g^{2}}\right ] \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((c*d*e*x^2 + a*d*e + (c*d^2 + a*e^2)*x)^(3/2)/((e*x + d)^(3/2)*(g*x + f)),x, algorithm="fricas")

[Out]

[1/3*(2*c^2*d^2*e*g*x^3 - 6*a*c*d^2*e*f + 8*a^2*d*e^2*g - 3*sqrt(c*d*e*x^2 + a*d
*e + (c*d^2 + a*e^2)*x)*(c*d*f - a*e*g)*sqrt(e*x + d)*sqrt(-(c*d*f - a*e*g)/g)*l
og(-(c*d*e*g*x^2 - c*d^2*f + 2*a*d*e*g - 2*sqrt(c*d*e*x^2 + a*d*e + (c*d^2 + a*e
^2)*x)*sqrt(e*x + d)*g*sqrt(-(c*d*f - a*e*g)/g) - (c*d*e*f - (c*d^2 + 2*a*e^2)*g
)*x)/(e*g*x^2 + d*f + (e*f + d*g)*x)) - 2*(3*c^2*d^2*e*f - (c^2*d^3 + 5*a*c*d*e^
2)*g)*x^2 - 2*(3*(c^2*d^3 + a*c*d*e^2)*f - (5*a*c*d^2*e + 4*a^2*e^3)*g)*x)/(sqrt
(c*d*e*x^2 + a*d*e + (c*d^2 + a*e^2)*x)*sqrt(e*x + d)*g^2), 2/3*(c^2*d^2*e*g*x^3
 - 3*a*c*d^2*e*f + 4*a^2*d*e^2*g + 3*sqrt(c*d*e*x^2 + a*d*e + (c*d^2 + a*e^2)*x)
*(c*d*f - a*e*g)*sqrt(e*x + d)*sqrt((c*d*f - a*e*g)/g)*arctan(-sqrt(c*d*e*x^2 +
a*d*e + (c*d^2 + a*e^2)*x)*(c*d*f - a*e*g)*sqrt(e*x + d)/((c*d*e*g*x^2 + a*d*e*g
 + (c*d^2 + a*e^2)*g*x)*sqrt((c*d*f - a*e*g)/g))) - (3*c^2*d^2*e*f - (c^2*d^3 +
5*a*c*d*e^2)*g)*x^2 - (3*(c^2*d^3 + a*c*d*e^2)*f - (5*a*c*d^2*e + 4*a^2*e^3)*g)*
x)/(sqrt(c*d*e*x^2 + a*d*e + (c*d^2 + a*e^2)*x)*sqrt(e*x + d)*g^2)]

_______________________________________________________________________________________

Sympy [F(-1)]  time = 0., size = 0, normalized size = 0. \[ \text{Timed out} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((a*d*e+(a*e**2+c*d**2)*x+c*d*e*x**2)**(3/2)/(e*x+d)**(3/2)/(g*x+f),x)

[Out]

Timed out

_______________________________________________________________________________________

GIAC/XCAS [F]  time = 0., size = 0, normalized size = 0. \[ \int \frac{{\left (c d e x^{2} + a d e +{\left (c d^{2} + a e^{2}\right )} x\right )}^{\frac{3}{2}}}{{\left (e x + d\right )}^{\frac{3}{2}}{\left (g x + f\right )}}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((c*d*e*x^2 + a*d*e + (c*d^2 + a*e^2)*x)^(3/2)/((e*x + d)^(3/2)*(g*x + f)),x, algorithm="giac")

[Out]

integrate((c*d*e*x^2 + a*d*e + (c*d^2 + a*e^2)*x)^(3/2)/((e*x + d)^(3/2)*(g*x +
f)), x)